﻿using PlaceOrder_Admin.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using UserControl = System.Windows.Controls.UserControl;

namespace PlaceOrder_Admin.Views
{
    /// <summary>
    /// ChatMessageView.xaml 的交互逻辑
    /// </summary>
    public partial class ChatAdminMessageView : UserControl
    {
        public ChatAdminMessageView()
        {
            InitializeComponent();

      
        }

        private void CheckComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.AddedItems.Count > 0)
            {
                List<string> addedItemsList = e.AddedItems.Cast<string>().ToList();
                ChatCheckBoxEventService.OnCheckComboBoxSelectionChanged(addedItemsList, null);
            }


            if (e.RemovedItems.Count > 0)
            {
                List<string> removedItemsList = e.RemovedItems.Cast<string>().ToList();
                ChatCheckBoxEventService.OnCheckComboBoxSelectionChanged(null, removedItemsList);
            }
        }

        /// <summary>
        /// 保存聊天窗口配置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
